<?php



class StockcurrentMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.StockcurrentMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(StockcurrentPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(StockcurrentPeer::TABLE_NAME);
		$tMap->setPhpName('Stockcurrent');
		$tMap->setClassname('Stockcurrent');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('LOCATION', 'Location', 'VARCHAR' , 'LOCATIONS', 'ID', true, 255);

		$tMap->addForeignPrimaryKey('PRODUCT', 'Product', 'VARCHAR' , 'PRODUCTS', 'ID', true, 255);

		$tMap->addColumn('STOCKSECURITY', 'Stocksecurity', 'DOUBLE', false, null);

		$tMap->addColumn('STOCKMAXIMUM', 'Stockmaximum', 'DOUBLE', false, null);

		$tMap->addColumn('UNITS', 'Units', 'DOUBLE', true, null);

	} 
} 